#include "message.pb.h"
#include <fstream>
#include <iostream>

int main() {
    MyMessage my_message;
    std::fstream input("serialized_data.bin", std::ios::in | std::ios::binary);
    // 假设serialized_data是你从Python接收的序列化数据  
    if (!my_message.ParseFromIstream(&input)) {
        std::cerr << "Failed to parse message." << std::endl;
        return -1;
    }  
    std::cout << "Res: \n" << my_message.DebugString() << std::endl;
    return 0;
}
